<?php
//获取用户列表
$temp="{";
$ul=$this->userCenter->roomList[$rid]->userList;
foreach($ul as $i)
{
	$temp.='"'.$i.'":'.$this->userCenter->userList[$i].",";
}
$temp .="}";
$temp = str_replace(",}","}",$temp);

//获取桌位信息
$temp1 = "{";
$tl = $this->userCenter->roomList[$rid]->tableList;
foreach($tl as $k=>$v)
{
	$temp1.='"'.$k.'":'.$v->getDetail().",";
}
$temp1 .="}";
$temp1 = str_replace(",}","}",$temp1);

$response->body = '{"userList":'.$temp.',"tableList":'.$temp1.',"roomID":"'.$rid.'"}';
$this->sendData($ip,$response);